class GroupInformationTablesController < ApplicationController
  def index
    @group_information_tables = GroupInformationTable.all
  end

  def show
    @group_information_table = GroupInformationTable.find(params[:id])
  end

  def new
    @group_information_table = GroupInformationTable.new
  end

  def create
    @group_information_table = GroupInformationTable.new(params[:group_information_table])
    if @group_information_table.save
      redirect_to @group_information_table, :notice => "Successfully created group information table."
    else
      render :action => 'new'
    end
  end

  def edit
    @group_information_table = GroupInformationTable.find(params[:id])
  end

  def update
    @group_information_table = GroupInformationTable.find(params[:id])
    if @group_information_table.update_attributes(params[:group_information_table])
      redirect_to @group_information_table, :notice  => "Successfully updated group information table."
    else
      render :action => 'edit'
    end
  end

  def destroy
    @group_information_table = GroupInformationTable.find(params[:id])
    @group_information_table.destroy
    redirect_to group_information_tables_url, :notice => "Successfully destroyed group information table."
  end
end
